package com.econ.powercloud.ems.common.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Map;

/**
 * @ Description:
 * @ Author：hgp
 * @ Create:2022-05-12-11:13
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class EmsEventOriginDataDTO {
    /**
     * 消息id
     */
    private Integer id;

    /**
     * 参数0
     */
    private EventParam params;

    @Data
    public static class EventParam {
        /**
         * 事件ID
         */
        private String eventId;
        /**
         * 事件的值
         */
        private Map<String, Object> value;
        /**
         * 时间 10位时间戳
         */
        private Long time;
    }
}
